Skip to content

Comments

Removal of bicep-types submodule with migration to pnpm#11139

Merged
brooke-hamilton merged 36 commits intoradius-project:mainfrom
brooke-hamilton:brooke-hamilton/remove-bicep-types-submodule-1
Feb 11, 2026
Merged

Removal of bicep-types submodule with migration to pnpm#11139
brooke-hamilton merged 36 commits intoradius-project:mainfrom
brooke-hamilton:brooke-hamilton/remove-bicep-types-submodule-1

Conversation

@brooke-hamilton
Copy link
Member

@brooke-hamilton brooke-hamilton commented Feb 1, 2026

Description

This PR removes the bicep-types git submodule and migrates JavaScript/TypeScript package management from npm to pnpm. The bicep-types dependency is now fetched as a git dependency and built via a postinstall script, simplifying the developer experience.

Key changes:

  • Remove the bicep-types git submodule and .gitmodules file
  • Migrate from npm (package-lock.json) to pnpm (pnpm-lock.yaml) for:
    • typespec/
    • hack/bicep-types-radius/src/generator/
    • hack/bicep-types-radius/src/autorest.bicep/
  • Update GitHub workflows to use pnpm instead of npm
  • Update devcontainer configuration for pnpm
  • Update Makefiles and build scripts
  • Add migration guide for developers with existing clones
  • Add a root package.json to ensure dev dependencies are at consistent versions and updated with dependabot.

Type of change

  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and does not change the functionality of Radius (issue link optional).

Testing

  1. Checkout the PR branch
  2. Follow the contributing guide included with this PR at docs/contributing/bicep-types-migration-guide.md.

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
    • Yes
    • Not applicable
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
    • Yes
    • Not applicable
  • The design document has been reviewed and approved by Radius maintainers/approvers.
    • Yes
    • Not applicable
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
    • Yes
    • Not applicable
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
    • Yes
    • Not applicable
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.
    • Yes
    • Not applicable

Related PRs:

Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the bicep-types git submodule and migrates the repo’s JS/TS dependency management (notably typespec/ and hack/bicep-types-radius/) from npm to pnpm, updating workflows, devcontainer setup, and developer docs accordingly.

Changes:

  • Removed bicep-types submodule wiring (bicep-types, .gitmodules) and submodule-related build checks.
  • Added pnpm lockfiles and updated build/generation scripts to use pnpm.
  • Updated GitHub workflows, devcontainer bootstrap, and contributor docs (including a migration guide).

Reviewed changes

Copilot reviewed 23 out of 29 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
typespec/pnpm-lock.yaml Adds pnpm lockfile for TypeSpec tooling.
typespec/package-lock.json Removes npm lockfile in favor of pnpm.
hack/bicep-types-radius/src/generator/pnpm-lock.yaml Adds pnpm lockfile for the generator package.
hack/bicep-types-radius/src/generator/package.json Switches bicep-types source to a git dependency and adds postinstall build/link logic.
hack/bicep-types-radius/src/generator/.npmrc Configures pnpm behavior for the generator package.
hack/bicep-types-radius/src/autorest.bicep/package.json Switches bicep-types source to a git dependency and adds postinstall build/link logic.
hack/bicep-types-radius/src/autorest.bicep/.npmrc Configures pnpm behavior for the autorest extension package.
docs/contributing/contributing-code/contributing-code-prerequisites/README.md Updates codegen prerequisites from npm to pnpm commands.
docs/contributing/contributing-code/contributing-code-building/README.md Removes submodule-related build note.
docs/contributing/bicep-types-migration-guide.md Adds migration steps for existing clones.
build/test.mk Updates oav installation guidance to pnpm.
build/generate.mk Updates generator prerequisites and bicep-types generation flow to pnpm.
build/build.mk Removes submodule existence/version checks from make build.
bicep-types Removes the submodule entry.
.gitmodules Removes submodule configuration.
.github/workflows/validate-bicep.yaml Removes submodule checkout and adds pnpm setup.
.github/workflows/publish-docs.yaml Removes submodule checkout and migrates TypeSpec/autorest/oav installs to pnpm.
.github/workflows/long-running-azure.yaml Removes submodule checkout.
.github/workflows/lint.yaml Removes submodule checkout and migrates TypeSpec/autorest/oav installs to pnpm.
.github/workflows/functional-test-noncloud.yaml Removes submodule checkout and adds pnpm setup.
.github/workflows/functional-test-cloud.yaml Removes submodule checkout.
.github/workflows/codeql.yml Removes submodule checkout and adds pnpm setup for JS analysis.
.github/workflows/build.yaml Removes submodule checkout and adds pnpm setup before bicep-types generation.
.github/dependabot.yml Replaces submodule updates with npm-ecosystem updates for the pnpm-managed projects.
.devcontainer/post-create.sh Migrates devcontainer bootstrap steps to pnpm and adds pnpm configuration.
.devcontainer/devcontainer.json Configures devcontainer Node feature to install pnpm v10.
Files not reviewed (4)
  • hack/bicep-types-radius/src/generator/package-lock.json: Language not supported
  • hack/bicep-types-radius/src/generator/pnpm-lock.yaml: Language not supported
  • typespec/package-lock.json: Language not supported
  • typespec/pnpm-lock.yaml: Language not supported

Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
DariuszPorowski
DariuszPorowski previously approved these changes Feb 2, 2026
Copy link
Member

@DariuszPorowski DariuszPorowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one suggestion for dev container

Co-authored-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Co-authored-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Copy link
Member

@DariuszPorowski DariuszPorowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@brooke-hamilton brooke-hamilton merged commit 5a38763 into radius-project:main Feb 11, 2026
48 checks passed
sk593 pushed a commit that referenced this pull request Feb 13, 2026
# Description

This PR removes the `bicep-types` git submodule and migrates
JavaScript/TypeScript package management from npm to pnpm. The
`bicep-types` dependency is now fetched as a git dependency and built
via a `postinstall` script, simplifying the developer experience.

**Key changes:**
- Remove the `bicep-types` git submodule and `.gitmodules` file
- Migrate from npm (`package-lock.json`) to pnpm (`pnpm-lock.yaml`) for:
  - `typespec/`
  - `hack/bicep-types-radius/src/generator/`
  - `hack/bicep-types-radius/src/autorest.bicep/`
- Update GitHub workflows to use pnpm instead of npm
- Update devcontainer configuration for pnpm
- Update Makefiles and build scripts
- Add migration guide for developers with existing clones
- Add a root `package.json` to ensure dev dependencies are at consistent
versions and updated with dependabot.

## Type of change

- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and does not change the functionality of
Radius (issue link optional).

## Testing

1. Checkout the PR branch
2. Follow the contributing guide included with this PR at
`docs/contributing/bicep-types-migration-guide.md`.

## Contributor checklist
Please verify that the PR meets the following requirements, where
applicable:

- An overview of proposed schema changes is included in a linked GitHub
issue.
    - [ ] Yes <!-- TaskRadio schema -->
    - [x] Not applicable <!-- TaskRadio schema -->
- A design document PR is created in the [design-notes
repository](https://github.com/radius-project/design-notes/), if new
APIs are being introduced.
    - [x] Yes <!-- TaskRadio design-pr -->
    - [ ] Not applicable <!-- TaskRadio design-pr -->
- The design document has been reviewed and approved by Radius
maintainers/approvers.
    - [ ] Yes <!-- TaskRadio design-review -->
    - [x] Not applicable <!-- TaskRadio design-review -->
- A PR for the [samples
repository](https://github.com/radius-project/samples) is created, if
existing samples are affected by the changes in this PR.
    - [ ] Yes <!-- TaskRadio samples-pr -->
    - [x] Not applicable <!-- TaskRadio samples-pr -->
- A PR for the [documentation
repository](https://github.com/radius-project/docs) is created, if the
changes in this PR affect the documentation or any user facing updates
are made.
    - [ ] Yes <!-- TaskRadio docs-pr -->
    - [x] Not applicable <!-- TaskRadio docs-pr -->
- A PR for the [recipes
repository](https://github.com/radius-project/recipes) is created, if
existing recipes are affected by the changes in this PR.
    - [ ] Yes <!-- TaskRadio recipes-pr -->
    - [x] Not applicable <!-- TaskRadio recipes-pr -->

**Related PRs:**
- Design document:
radius-project/design-notes#138

---------

Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Co-authored-by: Sylvain Niles <sylvainniles@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants